<%--
  Created by IntelliJ IDEA.
  User: 414
  Date: 2022/11/16
  Time: 17:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Bootstrap 4, from LayoutIt!</title>

    <meta name="description" content="Source code generated using layoutit.com">
    <meta name="author" content="LayoutIt!">

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

</head>
<body>

<div class="container-fluid">
    <div class="row">
        <div class="col-md-12">

            <table class="table">
                <thead>
                <tr>
                    <th>
                        编号
                    </th>
                    <th>
                        名字
                    </th>
                    <th>
                        生日
                    </th>
                    <th>
                        性别
                    </th>

                    <th>
                        地址
                    </th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="user" items="${list}">


                    <tr>
                        <td>
                                ${user.id}
                        </td>
                        <td>
                                ${user.username}
                        </td>
                        <td>
                                ${user.birthday}
                        </td>
                        <td>
                                ${user.sex}
                        </td>
                        <td>
                                ${user.address}
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <h3>
                添加user
            </h3>
            <form role="form" action="adduser" method="post">
                <div class="form-group">

                    <label for="exampleInputEmail1">
                        姓名
                    </label>
                    <input class="form-control" id="exampleInputEmail1" type="text" name="username">
                </div>
                <div class="form-group">

                    <label for="exampleInputPassword1">
                        生日
                    </label>
                    <input class="form-control" id="exampleInputPassword1" type="date" name="birthday">
                </div>
                <div class="form-group">

                    <label >
                        性别
                    </label>
                    <input type="radio" name="sex" value="1">男
                    <input type="radio" name="sex" value="2">女
                    <p class="help-block">
                        Example block-level help text here.
                    </p>
                </div>
                <div class="form-group">

                    <label for="exampleInputAddress">
                        地址
                    </label>
                    <input class="form-control" id="exampleInputAddress" type="text" name="address">
                </div>
                <div class="checkbox">

                    <label>
                        <input type="checkbox"> Check me out
                    </label>
                </div>
                <button class="btn btn-primary" type="submit">
                    添加
                </button>
            </form>
        </div>
    </div>
</div>

<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/scripts.js"></script>
</body>
</html>